<html>
<head>
	<title><?php echo $this->title; ?>期末考试成绩查询</title>
    <meta content="width=device-width,height=device-height,initial-scale=1.0,maximum-scale=1.0,user-scalable=no" name="viewport">
    <style>
        table{width:525px;margin:150px auto;text-align: center}
        @media screen and (max-width: 525px) {
            table{width:90%;}
        }
    </style>
</head>
<body>
<?php if($error){ ?>
    <div style="text-align: center"><?php echo $error; ?></div>
<?php }else{ ?>
    <table>
        <?php foreach ($rs as $item){ ?>
            <tr>
                <?php foreach ($item as $v){ ?>
                    <td>
                        <?php echo $v; ?>
                    </td>
                <?php } ?>
            </tr>
        <?php } ?>
    </table>
<?php } ?>
</body></html>